import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // 获取列表查询结果
  queryByPage: (query) => api.post(`${config.interfaces.type5}portfolio-server/sppi/queryByPage`, query),
  // 新增sppi测试记录
  sppiAdd: (query) => api.post(`${config.interfaces.type5}portfolio-server/sppi/add`, query),

  // 获取sppi测试记录详情
  getDetail: (query) => api.get(`${config.interfaces.type5}portfolio-server/sppi/query-sppi-detail`, query),

  // 获取sppi配置详情
  queryConf: (query) => api.get(`${config.interfaces.type5}portfolio-server/sppi/queryConf`, query),

  // 修改sppi配置详情
  updateConf: (query) => api.post(`${config.interfaces.type5}portfolio-server/sppi/updateConf`, query),
  // 获取sppi测试结果
  getResult: (query) => api.get(`${config.interfaces.type5}portfolio-server/sppi/querySppiResult`, query),
};
